package com.ruoyi.system.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券信息对象 car_shop_coupon
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
public class CarShopCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private CarShopCoupon carShopCoupon;

    public CarShopCoupon getCarShopCoupon()
    {
        return carShopCoupon;
    }

    public void setCarShopCoupon(CarShopCoupon carShopCoupon)
    {
        this.carShopCoupon = carShopCoupon;
    }

    /** 主键ID */
    private Long couId;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couName;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private String couType;

    /** 折扣 【如果是打折，则有折扣】 */
    @Excel(name = "折扣 【如果是打折，则有折扣】")
    private Double couDiscount;

    /** 触发金额 【如果是满减，最低金额】 */
    @Excel(name = "触发金额 【如果是满减，最低金额】")
    private Long couTriggerMoney;

    /** 优惠金额【如果是满减，减的金额】 */
    @Excel(name = "优惠金额【如果是满减，减的金额】")
    private Long couPreferentialMoney;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couStart;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couEnd;

    /** 投放数量 */
    @Excel(name = "投放数量")
    private Long couNum;

    /** 领取数量 */
    @Excel(name = "领取数量")
    private Long couSize;

    /** 使用开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couExpirationStart;

    /** 使用结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date couExpirationEnd;

    /** 状态【如果被领完，则不可领取状态】 */
    @Excel(name = "状态【如果被领完，则不可领取状态】")
    private Long couStatus;

    public void setCouId(Long couId) 
    {
        this.couId = couId;
    }

    public Long getCouId() 
    {
        return couId;
    }
    public void setCouName(String couName) 
    {
        this.couName = couName;
    }

    public String getCouName() 
    {
        return couName;
    }
    public void setCouType(String couType) 
    {
        this.couType = couType;
    }

    public String getCouType() 
    {
        return couType;
    }
    public void setCouDiscount(Double couDiscount)
    {
        this.couDiscount = couDiscount;
    }

    public Double getCouDiscount()
    {
        return couDiscount;
    }
    public void setCouTriggerMoney(Long couTriggerMoney) 
    {
        this.couTriggerMoney = couTriggerMoney;
    }

    public Long getCouTriggerMoney() 
    {
        return couTriggerMoney;
    }
    public void setCouPreferentialMoney(Long couPreferentialMoney) 
    {
        this.couPreferentialMoney = couPreferentialMoney;
    }

    public Long getCouPreferentialMoney() 
    {
        return couPreferentialMoney;
    }
    public void setCouStart(Date couStart) 
    {
        this.couStart = couStart;
    }

    public Date getCouStart() 
    {
        return couStart;
    }
    public void setCouEnd(Date couEnd) 
    {
        this.couEnd = couEnd;
    }

    public Date getCouEnd() 
    {
        return couEnd;
    }
    public void setCouNum(Long couNum) 
    {
        this.couNum = couNum;
    }

    public Long getCouNum() 
    {
        return couNum;
    }
    public void setCouSize(Long couSize) 
    {
        this.couSize = couSize;
    }

    public Long getCouSize() 
    {
        return couSize;
    }
    public void setCouExpirationStart(Date couExpirationStart) 
    {
        this.couExpirationStart = couExpirationStart;
    }

    public Date getCouExpirationStart() 
    {
        return couExpirationStart;
    }
    public void setCouExpirationEnd(Date couExpirationEnd) 
    {
        this.couExpirationEnd = couExpirationEnd;
    }

    public Date getCouExpirationEnd() 
    {
        return couExpirationEnd;
    }
    public void setCouStatus(Long couStatus) 
    {
        this.couStatus = couStatus;
    }

    public Long getCouStatus() 
    {
        return couStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couId", getCouId())
            .append("couName", getCouName())
            .append("couType", getCouType())
            .append("couDiscount", getCouDiscount())
            .append("couTriggerMoney", getCouTriggerMoney())
            .append("couPreferentialMoney", getCouPreferentialMoney())
            .append("couStart", getCouStart())
            .append("couEnd", getCouEnd())
            .append("couNum", getCouNum())
            .append("couSize", getCouSize())
            .append("couExpirationStart", getCouExpirationStart())
            .append("couExpirationEnd", getCouExpirationEnd())
            .append("couStatus", getCouStatus())
            .toString();
    }
}
